{% extends 'base.html' %}
{% block content %}
<h2>创建月度比赛</h2>
<form method="post">
    {{ form.hidden_tag() }}
    <div class="form-group">
        {{ form.name.label }}
        {{ form.name(class="form-control") }}
    </div>
    <div class="form-group">
        {{ form.description.label }}
        {{ form.description(class="form-control") }}
    </div>
    <div class="form-group">
        {{ form.start_date.label }}
        {{ form.start_date(class="form-control") }}
    </div>
    <div class="form-group">
        {{ form.end_date.label }}
        {{ form.end_date(class="form-control") }}
    </div>
    <button type="submit" class="btn btn-primary">创建</button>
</form>
<a href="{{ url_for('student_reservations.monthly_competitions') }}" class="btn btn-secondary">返回列表</a>
{% endblock %}
